<?php

/**
 * Contenido form.
 *
 * @package    toyomotor
 * @subpackage form
 * @author     Ing. Roberto Hernández De La Luz
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ContenidoForm extends BaseContenidoForm
{
  public function configure()
  {
      
      //$this->widgetSchema['contenido'] = new sfWidgetFormTextareaTinyMCE(array('width'  => 420, 'height' => 350, 'config' => 'theme_advanced_disable: "anchor,image,cleanup,help", theme_advanced_buttons1 : "bold, italic, underline, justifyleft, justifycenter, justifyright, justifyfull, indent, outdent, fontselect, fontsizeselect", theme_advanced_buttons2 : "bullist, numlist, |, |, undo, redo, |, link, unlink, |, forecolor, backcolor, |, cut, copy, paste, removeformat, hr", theme_advanced_buttons3 : "", theme_advanced_fonts : "Century Gothic=Century Gothic; Arial=arial,helvetica,sans-serif;Arial Black=Arial Black;Arial Narrow=Arial Narrow;Book Antiqua=Book Antiqua; Courier New=courier new,courier,monospace;AkrutiKndPadmini=Akpdmi-n; Comic Sans MS=Comic Sans MS;Courier New=Courier New;Fixedsys=Fixedsys;Franklin Gothic Medium=Franklin Gothic Medium;Garamond=Garamond;Georgia=Georgia;Impact=Impact;Lucida Console=Lucida Console;Lucida Sans Unicode=Lucida Sans Unicode;Microsoft Sans Serif=Microsoft Sans Serif;Palatino Linotype=Palatino Linotype;System=System;Tahoma=Tahoma;Times New Roman=Times New Roman;Trebuchet MS=Trebuchet MS;Verdana=Verdana", setup : function (ed) { }',));
      
      $this->widgetSchema['contenido'] = new sfWidgetFormTextareaTinyMCEContador(array('width'  => 420, 'height' => 350, 'config' => 'theme_advanced_disable: "anchor,image,cleanup,help", theme_advanced_buttons1 : "bold, italic, underline, justifyleft, justifycenter, justifyright, justifyfull, indent, outdent, fontselect, fontsizeselect", theme_advanced_buttons2 : "bullist, numlist, |, |, undo, redo, |, link, unlink, |, forecolor, backcolor, |, cut, copy, paste, removeformat, hr", theme_advanced_buttons3 : "", theme_advanced_fonts : "Century Gothic=Century Gothic; Arial=arial,helvetica,sans-serif;Arial Black=Arial Black;Arial Narrow=Arial Narrow;Book Antiqua=Book Antiqua; Courier New=courier new,courier,monospace;AkrutiKndPadmini=Akpdmi-n; Comic Sans MS=Comic Sans MS;Courier New=Courier New;Fixedsys=Fixedsys;Franklin Gothic Medium=Franklin Gothic Medium;Garamond=Garamond;Georgia=Georgia;Impact=Impact;Lucida Console=Lucida Console;Lucida Sans Unicode=Lucida Sans Unicode;Microsoft Sans Serif=Microsoft Sans Serif;Palatino Linotype=Palatino Linotype;System=System;Tahoma=Tahoma;Times New Roman=Times New Roman;Trebuchet MS=Trebuchet MS;Verdana=Verdana",theme_advanced_path : false, setup : function(ed) { ed.onKeyUp.add(function(ed, e) { var strip = tinyMCE.activeEditor.getContent();  var text = strip.length + " Letras, recuerde que tiene un maximo de 4200"; tinymce.DOM.setHTML(tinymce.DOM.get(tinyMCE.activeEditor.id + "_path_row"), text); }); } ',));
      
      $this->widgetSchema['nombre'] = new sfWidgetFormInput(array(), array('readonly' => true));
      
  }
}
